# CMakeList.txt: MyCommon 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#
cmake_minimum_required (VERSION 3.8)
project(json4keyorder)

file(GLOB_RECURSE DEMO_INCLUDE 
	${PROJECT_SOURCE_DIR}/include/*.h 
	${PROJECT_SOURCE_DIR}/include/*.hpp
)

file(GLOB_RECURSE DEMO_SRC 
	# ${PROJECT_SOURCE_DIR}/src/*.cpp 
	# ${PROJECT_SOURCE_DIR}/src/*.c
	# ${PROJECT_SOURCE_DIR}/*.cpp
	# ${PROJECT_SOURCE_DIR}/*.c
	${PROJECT_NAME}.cpp
)

message(WARNING ${DEMO_SRC})


include_directories(
	# ${PROJECT_SOURCE_DIR}/include/
	${SPDLOG_ROOT}/include
	${BOOST_INCLUDE_DIRS}
	${PCL_INCLUDE_DIRS}
	${FLANN_INCLUDE_DIRS}
	${VTK_INCLUDE_DIRS}

	${OpenCV_INCLUDE_DIRS}

	${BOOST_INCLUDE_DIRS}

	${MYSDK_INCLUDE_DIRS}
	${JSON_ROOT}
)


# add_library(${PROJECT_NAME} SHARED)
add_executable(${PROJECT_NAME} ${DEMO_SRC})

target_link_libraries(${PROJECT_NAME} 
	PUBLIC
# 	${PROJECT_SOURCE_DIR}/include
	${MYSDK_LIBRARIES}
)

# target_link_directories(${PROJECT_NAME}
# 	PUBLIC
# 	${PROJECT_SOURCE_DIR}/include
# )

# target_sources(${PROJECT_NAME}
# 	PRIVATE
# 	${DEMO_INCLUDE}
# 	${DEMO_SRC}
	
# )
